/*
 * @author EX-XIEYUWEN001
 * Filename:    SummaryImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年10月8日
 */
package com.paic.mhis.hcpms.quota.calculationreport.calculationdataItem.intergration.dao.impl;

import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.quota.calculationreport.calculationdataItem.intergration.dao.SummaryDAO;
import com.paic.pafa.biz.dao.BaseDAO;
import com.paic.pafa.exceptions.BusinessException;

@Component("summaryDao")
public class SummaryDAOImpl extends BaseDAO implements SummaryDAO {
	private static final Logger log = Logger.getLogger(SummaryDAOImpl.class);

	/**
	 * 数据项汇总就诊信息-日
	 * 
	 * @param paramMap
	 *            userName 当前汇总人 ,batchNo 当前批次号
	 */
	@Override
	public void saveSummaryVisitDay(Map<String, Object> paramMap) throws BusinessException {
		try {
			this._insert("summary.itemVisitDay", paramMap);
		} catch (Exception e) {
			log.error(e);
			throw new BusinessException("异常信息 ==>>> \"" + e.getMessage() + "\"");
		}
	}

	/**
	 * 数据项汇总就诊信息-月
	 * 
	 * @param paramMap
	 *            userName 当前汇总人 ,batchNo 当前批次号
	 */
	@Override
	public void saveSummaryVisitMonth(Map<String, Object> paramMap) throws BusinessException {
		try {
			this._insert("summary.itemVisitMonth", paramMap);
		} catch (Exception e) {
			log.error(e);
			throw new BusinessException("异常信息 ==>>> \"" + e.getMessage() + "\"");
		}
	}

	/**
	 * 数据项汇总单据信息-日
	 * 
	 * @param paramMap
	 *            userName 当前汇总人 ,batchNo 当前批次号
	 */
	@Override
	public void saveSummaryBillDay(Map<String, Object> paramMap) throws BusinessException {
		try {
			this._insert("summary.itemBillDay", paramMap);
		} catch (Exception e) {
			log.error(e);
			throw new BusinessException("异常信息 ==>>> \"" + e.getMessage() + "\"");
		}
	}

	/**
	 * 数据项汇总单据信息-月
	 * 
	 * @param paramMap
	 *            userName 当前汇总人 ,batchNo 当前批次号
	 */
	@Override
	public void saveSummaryBillMonth(Map<String, Object> paramMap) throws BusinessException {
		try {
			this._insert("summary.itemBillMonth", paramMap);
		} catch (Exception e) {
			log.error(e);
			throw new BusinessException("异常信息 ==>>> \"" + e.getMessage() + "\"");
		}
	}
}
